//
//  RegistVC.m
//  LoginTest
//
//  Created by 战立军 on 2017/2/20.
//  Copyright © 2017年 战立军. All rights reserved.
//

#import "RegistVC.h"
#import "RegistView.h"

@interface RegistVC ()<RegistViewDelegate>
{
    RegistView *_registView;
}
@end

@implementation RegistVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (!_registView) {
        _registView = [[RegistView alloc] initWithFrame:self.view.frame];
        _registView.delegate = self;
    }
    [self.view addSubview:_registView];
    
    // Do any additional setup after loading the view.
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark RegistViewDelegate

-(void)registViewgetsmsButtonpressWithPhone:(NSString *)phone
{
    [UIUTils showReminderMBProgressHUDWithTitle:@"验证码已发送，请注意短信" view:self.view];
}

-(void)registViewuserheadButtonpress
{
     NSLog(@"%s",__func__);
}

-(void)registViewRegistButtonpress
{
     NSLog(@"%s",__func__);
}

-(void)registViewloginButtonpress
{
    [self dismissViewControllerAnimated:YES completion:nil];
}



@end
